Enforce UTF-8 encoding when opening C files
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 18 Jan 2018 19:23:16 +0000 (19:23 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 23 Jan 2018 13:04:49 +0000 (14:04 +0100)
commitf83b3c8af2e0b02aa7e67fdbba6d5cae12658652
tree7dc3cb1fb88ac932376490e614dd4f616a59c660
parentb91fc17a1911a479e058d1df3a24486faa473290
Enforce UTF-8 encoding when opening C files

We have a couple of Python 3.x scripts that parse C files, and since C
does not have any encoding, we need to force one ourselves, to avoid the
case when we're running the build in a non-UTF-8 locale.

https://bugzilla.gnome.org/show_bug.cgi?id=792497
demos/gtk-demo/geninclude.py
gdk/wayland/genprotocolfiles.py